package com.gancai.admin.feign.fallback;

import com.gancai.admin.feign.TestFeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/** 需要开启熔断框架sentinel,才能生效
 * @author GanGan
 */
@Configuration
public class TestFeignClientFallback implements TestFeignClient {


    @Override
    public String getTestString(Long id) {
        System.out.println("调用失败...兜底回调");
        return "兜底数据";
    }
}
